#include <iostream>

using namespace std;

int main_48()
{
    int T,S;
    cin>>T;
    // avoid using float variable in order to assure the computation is accurate.
    if (T<=3500)
    {
        S=T;
    }
    else if(T<=4955)
    {
        S=(T-105)*100/97;
    }
    else if(T<=7655)
    {
        S=(T-455)*100/90;
    }
    else if(T<=11255)
    {
        S=(T-1255)*100/80;
    }
    else if(T<=30755)
    {
        S=(T-1880)*100/75;
    }
    else if(T<=44755)
    {
        S=(T-3805)*100/70;
    }
    else if(T<=61005)
    {
        S=(T-6730)*100/65;
    }
    else
    {
        S=(T-15080)*100/55;
    }
    cout << S << endl;
    return 0;
}
